<?php
class scroll {

    public function footer() {
        $host = S();
        echo<<<EOT

<!-- scroll plugin begin -->
<ul class="scroll">
    <li class="sct">
        <a href="#">&nbsp;&nbsp;&nbsp;</a>
        <div><a class="scroll_t" title="返回顶部">返回顶部</a></div>
    </li>
EOT;
        if ( R('c') == 'archives' ) {
            echo<<<EOT

    <li class="scc">
        <a href="#">&nbsp;&nbsp;&nbsp;</a>
        <div><a class="scroll_c" title="查看评论">查看评论</a></div>
    </li>
EOT;
        }
        echo<<<EOT

    <li class="scb">
        <a href="#">&nbsp;&nbsp;&nbsp;</a>
        <div><a class="scroll_b" title="转到底部">转到底部</a></div>
    </li>
</ul>
<link rel="stylesheet" href="{$host}/system/plugin/scroll/scroll.css" type="text/css" />
<script type="text/javascript" src="{$host}/system/plugin/scroll/scroll.js"></script>
<!-- scroll plugin end -->

EOT;

    }

    public function version() {
        return array(
            'version' => '1.0',
            'pid' => 'scroll',
            'description' => '自动显示滚动到顶部按钮',
            'home' => 'http://blog.com',
            'author' => '幽灵传说',
            'status' => 1
        );
    }
}